package sumOfUnique;

public class Solution {
    public int sumOfUnique(int[] nums) {
        int [] marks = new int[101];
        for (int n: nums) {
            marks[n]++;
        }
        int ans = 0;
        for (int i = 1; i <= 100; i++) {
            if(marks[i] == 1){
                ans+=i;
            }
        }
        return ans;
    }
}
